package com.leslie.hhcommunity.dao;

import com.leslie.hhcommunity.entity.LoginTicket;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
@Deprecated
public interface LoginTicketMapper {

	/**
	 * login_ticket表插入数据
	 *
	 * @param loginTicket
	 * @return
	 */
	int insertLoginTicket(LoginTicket loginTicket);

	/**
	 * 通过ticket查找数据
	 *
	 * @param ticket
	 * @return
	 */
	LoginTicket selectByTicket(String ticket);

	/**
	 * 更新login_ticket的status字段
	 *
	 * @param ticket
	 * @param status
	 * @return
	 */
	int updateStatus(@Param("ticket") String ticket, @Param("status") int status);


}
